<!DOCTYPE html>
<html>

  <head>
    <title>threejs</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      
      html,
      body {
        overflow: hidden;
      }
      
      .webgl {
        position: fixed;
        top: 0;
        left: 0;
        outline: none;
      }
    </style>
  </head>

  <body>
    <canvas class="webgl"></canvas>
  </body>

  <!--引入main.js脚本，es6的模块引用方式-->
  <script type="module">
    import './main.js'
  </script>
</html>